﻿using QAS.NekoramaZ.DAOs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace QAS.NekoramaZ.Models
{
    public class NewQuestionModel
    {
        public int QuestionID { get; private set; }
        public int BountyID { get; set; }
        public int TagName1 { get; set; }
        public int TagName2 { get; set; }
        public int TagName3 { get; set; }
        public int TagName4 { get; set; }
        public int TagName5 { get; set; }
        public String Title { get; set; }
        public String Content { get; set; }
        public int VoteCount { get; set; }
        public bool IsAnswered { get; set; }
        public bool IsSpam { get; set; }
        public int SpamCount { get; set; }
        public String EditReason { get; set; }
        public String VoteUpUserList { get; set; }
        public String VoteDownUserList { get; set; }
        public String SpamMarkUserList { get; set; }
        public int ViewCount { get; set; }
        public DateTime CreatedDate { get; set; }
        public int CreatedUser { get; set; }
        public DateTime LastModifiedDate { get; set; }
        public int ModifiedUser { get; set; }


        public void insert()
        {
            var dao = new NewQuestionDAO();
            dao.InsertNewQuestion(BountyID, TagName1, TagName2, TagName3, TagName4, TagName5, Title, Content, CreatedDate, CreatedUser);
        }
    }
}